package com.hxd.otc.api;

/**
 * 作  者 :  胡庆岭
 * 时  间 :  2018/5/14 16:02
 * 描  述 :  ${常量}
 */
public interface Constant {

    /**
     * 正则表达式：验证手机号
     */
    String REGEX_MOBILE1 = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$";
    String REGEX_MOBILE = "^1(3[0-9]|4[57]|5[0-35-9]|8[0-9]|70)\\d{8}$";
    String REGEX_UUID = "^[0-9a-zA-Z]{6,16}$";
    int PHONE_LENGTH = 11;
    int MESSAGE_CODE_LENGTH = 6;

    int LOGIN_PASSWORD_MIN_LENGTH = 8;
    int LOGIN_PASSWORD_MAX_LENGTH = 20;
    String REGEX_LOGIN_PASSWORD = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$";

    int PAY_PASSWORD_MIN_LENGTH = 8;//交易密码最小长度
    int PAY_PASSWORD_MAX_LENGTH = 20;//交易密码最大长度
    String REGEX_PAY_PASSWORD = "^[0-9a-zA-Z]{6,16}$";//交易密码正则

    String REGEX_EMAIL = "^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$";

    //用户ID最小长度
    int MIN_UUID_LENGTH = 4;
    //用户ID最大长度
    int MAX_UUID_LENGTH = 10;
    int MIN_NAME_LENNGTH = 2;
    //最小的昵称长度
    int MIN_NICKNAME_LENGTH = 2;
    //最大的昵称长度
    int MAX_NICKNAME_LENGTH = 20;
    //最小的名字长度
    int MIN_NAME_LENGTH = 2;
    //最大的名字长度
    int MAX_NAME_LENGTH = 10;
    int PAGE_DEFAULT = 1;
    int LIMIT_DETAULT = 10;
    int PLAY_PASSWORD_LENGTH = 6;
    String DEFAULT_NATIONAL_CODE = "86";


    interface Deal {
        //买入状态
        int TYPE_BUY = 0;
        //卖出状态
        int TYPE_SELL = 1;
        //删除状态
        int TYPE_DELETE = 2;
        String ID_KEY = "id";
        int IS_CAN_USER = 0;//交易队可以用

        int REQUSET_DEFAULT = 0;
        int REQUEST_ALL_BUY = 1;
        int REQUEST_ALL_SELL = 2;
        int DEFAULT_WALLET_STATUS = 1;//钱包默认状态
        int IS_MY_COIN_DEAL = 0;//是否是自己的广告
        int REQUEST_MY_ENTRY_ORDERS_CODE = 211;

        long DEAL_LIST_AUTO_REFRESH_TIME = 60 * 10;//交易自动刷新时间
    }

    interface Login {
        int LOGIN_TO_PHONE_CODE_REQUEST_CODE = 100;
        String PHONE_CODE_DATA = "phone_code_data";
        String DEFAULT_PHONE_CODE = "86";
        String PHONE_CODE_PATH = "code/PhoneAreaCode.txt";
        String CHOOSE_CITY_PATH = "province.json";
        String VERIFYTYPECODE = "FFFFA000000001817966";

    }

    interface Order {
        String PREVIEW_IMAGE_PATH_KEY = "preview_image_path_key";
        String PREVIEW_IMAGE_POSITION = "preview_image_position";
    }

    interface Publish {
        //发布状态出售
        int TYPE_SELL = 0;
        //发布状态购买
        int TYPE_BUY = 1;

        int STATUS_ON = 0;
        int STATUS_UP = 1;
    }

    interface HyphenateKeFu {
        //必填项，appkey获取地址：kefu.easemob.com，“管理员模式 > 渠道管理 > 手机APP”页面的关联的“AppKey”
        String DEFAULT_CUSTOMER_APPKEY = "1465190103068742#kefuchannelapp4643";
        //获取地址：kefu.easemob.com，“管理员模式 > 渠道管理 > 手机APP”页面的关联的“IM服务号”
        String DEFAULT_CUSTOMER_ACCOUNT = "kefuchannelimid_427059";
        //“管理员模式 > 设置 > 企业信息”页面的“租户ID”
        String DEFAULT_TENANT_ID = "4643";
        //留言ProjectId  进入“管理员模式 → 留言”，可以看到这个Project ID
        String DEFAULT_PROJECT_ID = "64237";
    }
}
